package cn.iocoder.yudao.module.demo.dal.mysql.fileinfo;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.demo.dal.dataobject.fileinfo.DemoFileInfoDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.demo.controller.admin.fileinfo.vo.*;

/**
 * demo文件信息 Mapper
 *
 * @author li_hai
 */
@Mapper
public interface DemoFileInfoMapper extends BaseMapperX<DemoFileInfoDO> {

    default PageResult<DemoFileInfoDO> selectPage(DemoFileInfoPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<DemoFileInfoDO>()
                .likeIfPresent(DemoFileInfoDO::getName, reqVO.getName())
                .orderByDesc(DemoFileInfoDO::getId));
    }

}